package com.base.hong.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;

import androidx.appcompat.widget.AppCompatTextView;

/**
 * Created by hong on 2020/8/7 9:49.
 */
public class FakeBoldTextView extends AppCompatTextView {
    public FakeBoldTextView(Context context) {
        super(context);
    }

    public FakeBoldTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public FakeBoldTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        getPaint().setFakeBoldText(true);
        super.onDraw(canvas);
    }
}
